Woocommerce\Pagarme\Model\Subscription S

Total Complexity 48
Dependencies 12
Dependents 4
Total lines 310
Lines of code 223
Logical lines of code 110
Comment lines 29
Methods 21
Properties 3

Methods 21

Method Rating Maintainability Complexity Lines of code
addSupportToSubscription()
S
49 3 36
getRecurrenceCycle()
S
63 4 12
processChangePaymentSubscription()
S
53 3 25
processSubscription()
S
53 3 24
addMetaDataCard()
S
57 3 17
hasSubscriptionProductInCart()
S
66 4 9
convertOrderObject()
S
57 2 17
setPaymentEnabled()
S
73 3 5
isChangePaymentSubscription()
S
69 3 6
getChargesByResponse()
S
71 2 6
getCardDataByTransaction()
S
72 2 6
getTransactionsByCharges()
S
71 2 6
__construct()
S
65 2 10
getCardSubscriptionData()
S
68 2 7
createCreditCard()
S
63 2 10
getPagarmeCustomer()
S
71 2 6
canUpdatePaymentMethod()
S
71 2 6
getCardDataByResponse()
S
73 1 5
saveCardInSubscription()
S
75 1 4
hasSubscriptionPlugin()
S
80 1 3
getConfig()
S
82 1 3